package OoDay04;

public class Fish extends Animal implements Swim {
    public Fish(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    public void eat() {
        System.out.println(name+"在吃饲料");
    }

    @Override
    public void swim() {
        System.out.println(color+"颜色的"+age+"岁的"+name+"小鱼在游泳");
    }
}
